/*
 * @Author: zhuwenzhi
 * @Date: 2024-06-19 21:48:29
 * @LastEditTime: 2024-06-19 21:48:33
 * @LastEditors: zhuwenzhi
 * @FilePath: /dva-quickstart/src/models/products.js
 * @Description: 
 */
export default {
	namespace: 'products',
	state: [],
	reducers: {
	  'delete'(state, { payload: id }) {
		return state.filter(item => item.id !== id);
	  },
	},
  };
